    @{
    ViewBag.Title = "index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

    
    <h2>
        Confirm dialog demo</h2>

    @ViewBag.message

    @Html.Confirm("Are you sure you want to 'do it' ?")
    @Html.Confirm("Do you really want to click a button called 'click me' ?", "confirm2")
    @Html.Confirm("Are you sure you want to 'do it again' ?", "confirm3")

    <p>
        @using (Html.BeginForm("DoStuff", "ConfirmDemo", FormMethod.Post))
          {
        <input type="hidden" name="msg" value="you did it" />
        <input type="submit" value="do it" class="confirm" />
        }
    </p>

    <p>
        <form method="post" action="@Url.Action("DoStuff")">
        <input type="hidden" name="msg" value="thnx for clicking me " />
        <input type="submit" value="click me" class="confirm2" />
        </form>
    </p>

    <p>
        <form method="post" action="@Url.Action("DoStuff")">
        <input type="hidden" name="msg" value="you did it again" />
        <input type="submit" value="do it again" class="confirm3" />
        </form>
    </p>


